# Contributor: Kaarle Ritvanen <kunkku@alpinelinux.org>
# Maintainer: Kaarle Ritvanen <kunkku@alpinelinux.org>
pkgname=py3-django-extra-views
pkgver=0.14.0
pkgrel=4
pkgdesc="Extra class-based views for Django"
options="!check" # Requires unpackaged django-nose
url="https://github.com/AndrewIngram/django-extra-views"
arch="noarch"
license="MIT"
depends="py3-django python3"
makedepends="py3-setuptools"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/AndrewIngram/django-extra-views/archive/$pkgver.tar.gz"

builddir="$srcdir/django-extra-views-$pkgver"

replaces="py-django-extra-views" # Backwards compatibility
provides="py-django-extra-views=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	python3 runtests.py
}

package() {
	python3 setup.py install --root "$pkgdir"
}

sha512sums="
32f42650629829acf27a5e5b812ab128a497e262463f021d50df47bd0222916a0f32e1b44c8a05c1c7c83b9a0ce5f7d51ec35684b22f2173a3777cc903f5599b  py3-django-extra-views-0.14.0.tar.gz
"
